# uncompyle6 version 3.2.3
# Python bytecode 3.6 (3379)
# Decompiled from: Python 3.6.8 |Anaconda custom (64-bit)| (default, Feb 21 2019, 18:30:04) [MSC v.1916 64 bit (AMD64)]
# Embedded file name: site-packages\PyInstaller\lib\modulegraph\_compat.py
import sys

if sys.version_info[0] == 2:
    PY2 = True
    from StringIO import StringIO

    BytesIO = StringIO
    from urllib import pathname2url

    _cOrd = ord
    _READ_MODE = "rU"

    def Bchr(value):
        return chr(value)


else:
    PY2 = False
    from urllib.request import pathname2url
    from io import BytesIO, StringIO

    _cOrd = int
    _READ_MODE = "r"

    def Bchr(value):
        return value


if sys.version_info < (3,):
    from dis3 import get_instructions
else:
    if sys.version_info < (3, 4):
        from xdis.std import get_instructions
    else:
        from dis import get_instructions
